package com.serie402.web.filter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.kiss.fw.filter.AbstractFilter;
import com.serie402.web.jsf.mb.NewsManagedBean;

public class GenericFilter extends AbstractFilter {
	@Override
	protected void initialize() throws Exception {
	}
	
	@Override
	protected void execute(HttpServletRequest _request, HttpServletResponse _response) throws Exception {
		// determine if we have breaking news
		_request.setAttribute("breakingNews", NewsManagedBean.configureBreakingNews());
	}
}